<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FormSettingsTD" targetNamespace="http://www.RobertRisley.com/FormSettingsTD.xsd" xmlns:mstns="http://www.RobertRisley.com/FormSettingsTD.xsd" xmlns="http://www.RobertRisley.com/FormSettingsTD.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="RWR_SettingsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="RWR_SettingsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.RWR.Windows.Components.DSBO.Properties.Settings.GlobalReference.Default.RWR_SettingsConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FormSettingsTableAdapter" GeneratorDataComponentClassName="FormSettingsTableAdapter" Name="FormSettings" UserDataComponentName="FormSettingsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="RWR.dbo.FormSettings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [FormSettings] WHERE (([UserName] = @Original_UserName) AND ([FormName] = @Original_FormName))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_FormName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [FormSettings] ([UserName], [FormName], [FormSettingsXml]) VALUES (@UserName, @FormName, @FormSettingsXml);
SELECT UserName, FormName, FormSettingsXml FROM FormSettings WHERE (FormName = @FormName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FormName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FormSettingsXml" Precision="0" ProviderType="Text" Scale="0" Size="0" SourceColumn="FormSettingsXml" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        UserName, FormName, FormSettingsXml
FROM            FormSettings</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [FormSettings] SET [UserName] = @UserName, [FormName] = @FormName, [FormSettingsXml] = @FormSettingsXml WHERE (([UserName] = @Original_UserName) AND ([FormName] = @Original_FormName));
SELECT UserName, FormName, FormSettingsXml FROM FormSettings WHERE (FormName = @FormName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FormName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FormSettingsXml" Precision="0" ProviderType="Text" Scale="0" Size="0" SourceColumn="FormSettingsXml" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_FormName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
              <Mapping SourceColumn="FormName" DataSetColumn="FormName" />
              <Mapping SourceColumn="FormSettingsXml" DataSetColumn="FormSettingsXml" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="cUnderwriter.dbo.FormSettings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByUserNameFormName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByUserNameFormName" GeneratorSourceName="FillByUserNameFormName" GetMethodModifier="Public" GetMethodName="GetDataByUserNameFormName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByUserNameFormName" UserSourceName="FillByUserNameFormName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     UserName, FormName, FormSettingsXml
FROM         dbo.FormSettings
WHERE     (UserName = @UserName) AND (FormName = @FormName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="cUnderwriter.dbo.FormSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="FormName" ColumnName="FormName" DataSourceName="cUnderwriter.dbo.FormSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@FormName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="IsExistingFormSettings" Modifier="Public" Name="IsExistingFormSettings" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="IsExistingFormSettings">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     COUNT(*) AS FormSettingExists
FROM         dbo.FormSettings
WHERE     (UserName = @UserName) AND (FormName = @FormName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="[RWR.Settings].dbo.FormSettings" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="FormName" ColumnName="FormName" DataSourceName="[RWR.Settings].dbo.FormSettings" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@FormName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="FormName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FormSettingsTD" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="FormSettingsTD" msprop:Generator_DataSetName="FormSettingsTD">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="FormSettings" msprop:Generator_UserTableName="FormSettings" msprop:Generator_RowDeletedName="FormSettingsRowDeleted" msprop:Generator_RowChangedName="FormSettingsRowChanged" msprop:Generator_RowClassName="FormSettingsRow" msprop:Generator_RowChangingName="FormSettingsRowChanging" msprop:Generator_RowEvArgName="FormSettingsRowChangeEvent" msprop:Generator_RowEvHandlerName="FormSettingsRowChangeEventHandler" msprop:Generator_TableClassName="FormSettingsDataTable" msprop:Generator_TableVarName="tableFormSettings" msprop:Generator_RowDeletingName="FormSettingsRowDeleting" msprop:Generator_TablePropName="FormSettings">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UserName" msdata:Caption="User Name" msprop:Generator_UserColumnName="UserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FormName" msdata:Caption="Form Name" msprop:Generator_UserColumnName="FormName" msprop:Generator_ColumnPropNameInRow="FormName" msprop:Generator_ColumnVarNameInTable="columnFormName" msprop:Generator_ColumnPropNameInTable="FormNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FormSettingsXml" msdata:Caption="Form Settings Xml" msprop:Generator_UserColumnName="FormSettingsXml" msprop:Generator_ColumnPropNameInRow="FormSettingsXml" msprop:Generator_ColumnVarNameInTable="columnFormSettingsXml" msprop:Generator_ColumnPropNameInTable="FormSettingsXmlColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FormSettings" />
      <xs:field xpath="mstns:UserName" />
      <xs:field xpath="mstns:FormName" />
    </xs:unique>
  </xs:element>
</xs:schema>